package com.kanche.bigbaby.bean;

import org.json.*;

import java.io.Serializable;


public class SubstituteUser implements Serializable {
	
    private boolean enable;
    private ServiceDate serviceDate;
    private double position;
    private String id;
    private String userId;
    private String level;
    private boolean usePrivatePhone;
    
    
	public SubstituteUser () {
		
	}	
        
    public SubstituteUser (JSONObject json) {
    
        this.enable = json.optBoolean("enable");
        this.serviceDate = new ServiceDate(json.optJSONObject("serviceDate"));
        this.position = json.optDouble("position");
        this.id = json.optString("id");
        this.userId = json.optString("userId");
        this.level = json.optString("level");
        this.usePrivatePhone = json.optBoolean("usePrivatePhone");

    }
    
    public boolean getEnable() {
        return this.enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public ServiceDate getServiceDate() {
        return this.serviceDate;
    }

    public void setServiceDate(ServiceDate serviceDate) {
        this.serviceDate = serviceDate;
    }

    public double getPosition() {
        return this.position;
    }

    public void setPosition(double position) {
        this.position = position;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLevel() {
        return this.level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public boolean getUsePrivatePhone() {
        return this.usePrivatePhone;
    }

    public void setUsePrivatePhone(boolean usePrivatePhone) {
        this.usePrivatePhone = usePrivatePhone;
    }


    
}
